package com.huawei.java.zother;

/**
 * 计时器，用于测试性能
 * @author 金昊霖
 */
public class Timer {
    static long last;
    static long now;
    public static void start(){
        last=System.currentTimeMillis();
    }
    public static void print(){
        now=System.currentTimeMillis();
        System.out.println(now-last);
        last=now;
    }
}
